# 时钟约束50MHz
set_property -dict { PACKAGE_PIN J19 IOSTANDARD LVCMOS33 } [get_ports {clk}]; 
create_clock -add -name sys_clk_pin -period 20.00 -waveform {0 10} [get_ports {clk}];

# 时钟引脚
set_property IOSTANDARD LVCMOS33 [get_ports clk]
set_property PACKAGE_PIN J19 [get_ports clk]

# 复位引脚
set_property IOSTANDARD LVCMOS33 [get_ports rst]
set_property PACKAGE_PIN L18 [get_ports rst]

# 串口发送引脚
set_property IOSTANDARD LVCMOS33 [get_ports uart_tx_pin]
set_property PACKAGE_PIN V2 [get_ports uart_tx_pin]

# 串口接收引脚
set_property IOSTANDARD LVCMOS33 [get_ports uart_rx_pin]
set_property PACKAGE_PIN U2 [get_ports uart_rx_pin]

# 程序执行完毕指示引脚 (LED1)
set_property IOSTANDARD LVCMOS33 [get_ports over]
set_property PACKAGE_PIN M18 [get_ports over]

# 程序执行成功指示引脚 (LED2)
set_property IOSTANDARD LVCMOS33 [get_ports succ]
set_property PACKAGE_PIN N18 [get_ports succ]

#############SPI Configurate Setting##################
set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]
set_property CONFIG_MODE SPIx4 [current_design]
set_property BITSTREAM.CONFIG.CONFIGRATE 50 [current_design]
#############压缩文件 ##################
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]